package com.huipinche.service.impl;

import com.huipinche.dao.bean.Journey;
import com.huipinche.dao.impl.JourneyDaoimpl;
import com.huipinche.service.mainJourneyService;

import java.util.List;

/**
 * @Auther: 徐锶达
 * @Date:
 * @Description:
 */
public class mainJourneyServiceimpl implements mainJourneyService {
    @Override
    public Journey[] mainJourney() {
        Journey[] journeyTrans = new Journey[0];
        JourneyDaoimpl journeyDaoimpl = new JourneyDaoimpl();
        List<Journey> journey = journeyDaoimpl.seletJourneyAll(); // 获取所有订单

        return journey.toArray(journeyTrans); // 将List转化为数组
    }
}
